package initter

import "go.uber.org/zap"

func IniLogger() {
	config := zap.NewDevelopmentConfig()
	config.OutputPaths = []string{
		"./MxShopApi/userApi/apiLog.log",
		"stderr",
	}
	//构建并初始化
	logger, _ := config.Build()
	//替换为全局变量
	zap.ReplaceGlobals(logger)
}
